package com.weifangfirecontrolformal.weifangfirecontrolformal.web.service.business.emergencyCommand;

import cn.hutool.json.JSONObject;
import com.weifangfirecontrolformal.weifangfirecontrolformal.common.base.BaseService;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.model.RespEntity;
import com.weifangfirecontrolformal.weifangfirecontrolformal.support.utils.requestutil.HttpRequestUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @Author: YangYu
 * @ClassName: BusinessService
 * @Date: Created in 13:32 2024/4/27
 * @Description: 应急指挥
 */
@Service
@Slf4j
public class EmergencyCommandService extends BaseService {


    /**
     * @Author YangYu
     * @Description 应急指挥信息新增、编辑
     * @Date Created in 13:33 2024/4/27
     * @Param [jsonObject]
     */

    public RespEntity emergencyCommandAddOrUpdate(JSONObject jsonObject) {
        jsonObject = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return restJava(jsonObject,"businessJava","emergencyCommandAddOrUpdate","emergencyCommand");
    }

    /**
     * @Author YangYu
     * @Description 应急指挥信息删除
     * @Date Created in 13:33 2024/4/27
     * @Param [jsonObject]
     */

    public RespEntity emergencyCommandDel(JSONObject jsonObject) {
        jsonObject = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return restJava(jsonObject,"businessJava","emergencyCommandDel","emergencyCommand");
    }

    /**
     * @Author YangYu
     * @Description 应急指挥信息分页列表
     * @Date Created in 13:33 2024/4/27
     * @Param [jsonObject]
     */

    public RespEntity emergencyCommandListPage(JSONObject jsonObject) {
        jsonObject = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return restJava(jsonObject,"businessJava","emergencyCommandListPage","emergencyCommand");
    }

    /**
     * @Author YangYu
     * @Description 应急保障情况（数量）
     * @Date Created in 13:33 2024/4/27
     * @Param [jsonObject]
     */

    public RespEntity emergencyCommandCount(JSONObject jsonObject) {
        jsonObject = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return restJava(jsonObject,"businessJava","emergencyCommandCount","emergencyCommand");
    }

    /**
     * @Author YangYu
     * @Description 应急指挥信息列表
     * @Date Created in 13:33 2024/4/27
     * @Param [jsonObject]
     */

    public RespEntity emergencyCommandList(JSONObject jsonObject) {
        jsonObject = HttpRequestUtil.commonHttpRequestParamConvert(getRequest());
        return restJava(jsonObject,"businessJava","emergencyCommandList","emergencyCommand");
    }

}
